package com.sz.biz.logistics.core.dto;

public class ServiceTypeReceiveInfo {
    private String serviceTypeCode;
    private boolean isServiceReceive=false;
    private String serviceTypeName;

    public String getServiceTypeCode() {
        return serviceTypeCode;
    }

    public void setServiceTypeCode(String serviceTypeCode) {
        this.serviceTypeCode = serviceTypeCode;
    }

    public boolean isServiceReceive() {
        return isServiceReceive;
    }

    public void setServiceReceive(boolean serviceReceive) {
        isServiceReceive = serviceReceive;
    }
    public String getServiceTypeName() {
        return serviceTypeName;
    }

    public void setServiceTypeName(String serviceTypeName) {
        this.serviceTypeName = serviceTypeName;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }
        if (o == null || getClass() != o.getClass()) {
            return false;
        }

        ServiceTypeReceiveInfo that = (ServiceTypeReceiveInfo) o;

        if (isServiceReceive != that.isServiceReceive) {
            return false;
        }
        if (serviceTypeCode != null ? !serviceTypeCode.equals(that.serviceTypeCode) : that.serviceTypeCode != null) {
            return false;
        }
        return serviceTypeName != null ? serviceTypeName.equals(that.serviceTypeName) : that.serviceTypeName == null;
    }

    @Override
    public int hashCode() {
        int result = serviceTypeCode != null ? serviceTypeCode.hashCode() : 0;
        result = 31 * result + (isServiceReceive ? 1 : 0);
        result = 31 * result + (serviceTypeName != null ? serviceTypeName.hashCode() : 0);
        return result;
    }
}